package top.yehot.kettle.boot.core.config;

import java.nio.charset.Charset;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Kettle 配置属性
 * 
 * @author lquan
 * @date 2022年5月29日 下午3:55:39
 */
@Component("kettleCfg")
@ConfigurationProperties(prefix = "kettle")
public class KettleCfg {

	/**
	 * kettle所在路径，初始化会自动生成.kettle文件在该目录,kettle.properties,repositories.xml,shared.xml都在里面
	 */
	public static String home;
	
	/**
     * kettle编码设置
     */
    public static Charset encoding;
    
    /**
     * 日志文件输出路径
     */
    public static String logFilePath;
	
	/**
	 * kettle插件包所在路径 eg: D:\Development\kettle\8.3\data-integration\plugins
	 */
	public static String pluginPackages;

	public void setHome(String home) {
		KettleCfg.home = home;
	}

	public void setPluginPackages(String pluginPackages) {
		KettleCfg.pluginPackages = pluginPackages;
	}

	public void setEncoding(Charset encoding) {
		KettleCfg.encoding = encoding;
	}

	public void setLogFilePath(String logFilePath) {
		KettleCfg.logFilePath = logFilePath;
	}
	
}
